package com.indusfo.spc.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.indusfo.spc.common.pojo.BasePojo;

import java.util.Date;

/**
 * @Author 熊冰  日志
 * @Date 2020/1/6 14:48
 */
public class Log extends BasePojo {
    /**
     * @Author 熊冰 主键id
     * @Date 2020/1/6 14:47
     */
    private Integer logId;
/**
 * @Author 熊冰  用户id
 * @Date 2020/1/6 14:48
 */
    private Integer userId;
/**
 * @Author 熊冰  访问路径
 * @Date 2020/1/6 14:48
 */
    private String logUrl;
/**
 * @Author 熊冰  动作
 * @Date 2020/1/6 14:48
 */
    private String logAction;
/**
 * @Author 熊冰  ip
 * @Date 2020/1/6 14:48
 */
    private String logIp;
/**
 * @Author 熊冰  模块
 * @Date 2020/1/6 14:48
 */
    private String logModel;
/**
 * @Author 熊冰  按钮
 * @Date 2020/1/6 14:49
 */
    private String logButton;

    private String remark;

    private Integer dataState;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date modifyDate;

    public Integer getLogId() {
        return logId;
    }

    public void setLogId(Integer logId) {
        this.logId = logId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getLogUrl() {
        return logUrl;
    }

    public void setLogUrl(String logUrl) {
        this.logUrl = logUrl == null ? null : logUrl.trim().replace(" ","");
    }

    public String getLogAction() {
        return logAction;
    }

    public void setLogAction(String logAction) {
        this.logAction = logAction == null ? null : logAction.trim().replace(" ","");
    }

    public String getLogIp() {
        return logIp;
    }

    public void setLogIp(String logIp) {
        this.logIp = logIp == null ? null : logIp.trim().replace(" ","");
    }

    public String getLogModel() {
        return logModel;
    }

    public void setLogModel(String logModel) {
        this.logModel = logModel == null ? null : logModel.trim().replace(" ","");
    }

    public String getLogButton() {
        return logButton;
    }

    public void setLogButton(String logButton) {
        this.logButton = logButton == null ? null : logButton.trim().replace(" ","");
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim().replace(" ","");
    }

    public Integer getDataState() {
        return dataState;
    }

    public void setDataState(Integer dataState) {
        this.dataState = dataState;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getModifyDate() {
        return modifyDate;
    }

    public void setModifyDate(Date modifyDate) {
        this.modifyDate = modifyDate;
    }
}